/ Assembly List / LJCNetCommon / LJCReflect / GetString

Namespace - LJCNetCommon


Parameters
propertyName - The property name.

Returns

The string property value.

Syntax

C#
public String GetString(String propertyName)

Gets the property value as a string.

Example

C#
using LJCNetCommon;
        
// Initialize LJCReflect outside of loop.
var mReflect = new LJCReflect(records[0]);
foreach var record in records)
{
  // Use SetSource to change the data record.
  mReflect.SetSource(record);
  var value = mReflect.GetString("LastName");
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.